package com.zb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zb.entity.ZjCode02;
import com.zb.vo.CodeRelateoinInfoVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author WEN
 * @Date 2023/8/29 0029
 **/
@Repository
public interface ZjCode02Mapper extends BaseMapper<ZjCode02> {
    /**
     * 根据编码批次ID查询检查是否编码有关联信息
     * @param codeBatchIds
     */
    List<CodeRelateoinInfoVo> checkCodeRelationInfoForDeleteByBatchIds(@Param("codeBatchIds") List<Long> codeBatchIds);

    /**
     * 根据编码ID查询检查是否编码有关联信息
     * @param ids
     * @return
     */
    List<CodeRelateoinInfoVo> checkCodeRelationInfoByIds(@Param("ids") List<Long> ids);

}
